let lastEvent: Event
;["click", "touchstart", "mousedown", "keydown", "mouseover"].forEach(eventType => {
    document.addEventListener(
        eventType,
        (event: Event) => {
            lastEvent = event
        },
        {
            capture: true, // 捕获阶段
            passive: true // 默认不阻止默认行为
        }
    )
})
export function getLastEvent() {
    return lastEvent
}
